<form id="pagerForm" method="post" action="">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="platform" value="{$platform}" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="m" value="{$module_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:170px;">
				<label style="width:50px;">关键字：</label>
				<input type="text" name="keywords" value="{$keywords}" style="width:80px;"/>
			</li>
			<li style="width:0px;">
			<input type="hidden" name="sfield_name" value="id,user_id,mobile,tel,realname,company" />
			</li>
			<li style="width:150px;">
                <label style="width:60px;">查找条件：</label>
                <select name="stype" class="combox"> 
                    <option value="all" {if $stype=='all'||empty($stype)}selected="selected"{/if}>全部</option>
                    <option value="user_id" {if $stype=='user_id'}selected="selected"{/if}>专营商ID</option>
                </select>
            </li>
			<li style="width:150px;">
                <label style="width:60px;">商品类型：</label>
                <select name="jstype" class="combox"> 
                    <option value="all" {if $status=='all'||empty($stype)}selected="selected"{/if}>全部</option>
					<php>foreach ($pro_type as $k=>$vo){</php>
                    <option value="{$k}" {if $status=='$k'}selected="selected"{/if}>{$vo}</option>
                    <php>}</php>
                </select>
            </li>
			<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
		</ul>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<!--<php>
				$param=array();
				if($pid){
				}
			</php>-->
			<!--<li><a class="add" href="{:U('User/add',$param)}" target="dialog" width="580" height="350" rel="User_add"><span>添加用户</span></a></li>-->
			<!--<li><a class="edit" href="{:U('Agent/edit')}&id={sid_dv}" target="dialog" width="580" height="350" warn="请选择一条信息"><span>修改信息</span></a></li>
			<li><a class="icon" width="830" height="380" href="{:U('Agent/detail')}&id={sid_dv}" target="dialog" warn="请选择一条信息"><span>查看信息</span></a></li>-->
			<!--<li><a class="icon" href="javascript:$.printBox('user_list')"><span>打印</span></a></li>-->
		</ul>
	</div>
	<div id="user_list">
	<table class="table" layoutH="110">
		<thead>
			<tr>
				<th width="30"><input type="checkbox" group="ids[]" class="checkboxCtrl"></th>
				<th width="80" orderField="user_id" {if $orderField=='user_id'}class="{$orderDirection}"{/if}>专营商ID</th>
				<th width="80" orderField="user_id" {if $orderField=='user_id'}class="{$orderDirection}"{/if}>结算比例</th>
				<th width="80" orderField="user_id" {if $orderField=='user_id'}class="{$orderDirection}"{/if}>结算类型</th>
				<!--<th width="60" orderField="stype" {if $orderField=='stype'}class="{$orderDirection}"{/if}>类型</th>-->
				<th width="150" orderField="vesting_province" {if $orderField=='vesting_province'}class="{$orderDirection}"{/if}>金额</th>										
				<th width="180" orderField="mobile" {if $orderField=='mobile'}class="{$orderDirection}"{/if}>开始时间</th>
				<th width="180" orderField="mobile" {if $orderField=='mobile'}class="{$orderDirection}"{/if}>结束时间</th>
				<th width="180" orderField="mobile" {if $orderField=='mobile'}class="{$orderDirection}"{/if}>状态</th>
				<!--<th width="150" orderField="starttime" {if $orderField=='starttime'}class="{$orderDirection}"{/if}>会员账户</th>-->
				<!--<th width="110" orderField="endtime" {if $orderField=='endtime'}class="{$orderDirection}"{/if}>合约结束</th>-->
				<!--<th width="120">编辑</th>-->
				</tr>
		</thead>
		<tbody>
		<volist name="list" id="vo">
			<tr target="sid_dv" rel="{$vo['id']}">
				<td><input name="ids[]" value="{$vo['id']}" type="checkbox"></td>
				<td>{$vo['agent_id']}</td>
				<td>{$vo['ratio']}</td>
				<td>{$pro_type[$vo['type']]}</td>
				<td>{$vo['amount']/100}</td>
				<td>{$vo['starttime']|date='Y-m-d H:m:s',###}</td>
				<td>{$vo['endtime']|date='Y-m-d H:m:s',###}</td>
				<td>{if $vo['status'] ==1}申请{/if}{if $vo['status'] ==2}审核中{/if}{if $vo['status'] ==3}完成{/if}{if $vo['status'] ==4}无效{/if}</td>
				<!--d>{$vo['add_time']|date='Y-m-d H:m:s',###}</td>-->
				<!--<td><a title="查看" target="dialog" width="830" height="380" rel="Agent_detail_{$vo['id']}" href="{:U('Areauser/sel',array('id'=>$vo['id']))}" class="btnInfo">查看</a></td>-->
			</tr>
		</volist>
		</tbody>
	</table>
	</div>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
				<option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
				<option value="66" {if $numPerPage==66}selected="selected"{/if}>66</option>
				<option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
				<option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
	</div>
</div>
